package lily.ui.control;

import lily.phs.urh.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.PopupWindow;

public class SearchPopupWindow extends PopupWindow{
	
	Button bt;
	EditText et;
	public SearchPopupWindow(Context context){
		super(context);
		LayoutInflater mLayoutInflater = (LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
		View view = mLayoutInflater.inflate(R.layout.search_layout, null);
		bt=(Button)view.findViewById(R.id.searchBtn);
		et=(EditText)view.findViewById(R.id.searchTextView);
		this.setContentView(view);
		
		this.setWindowLayoutMode(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
		this.setOutsideTouchable(true);
		
		
		
		this.update();
		this.setTouchable(true);
		this.setFocusable(true);
		this.setAnimationStyle(R.anim.anim_slide_in_left);
		
	}
	public EditText getEt() {
		return et;
	}
	public Button getBt() {
		return bt;
	}

}
